home *** CD-ROM | disk | FTP | other *** search
- #include "window.h"
- #define NORM CREATE_VIDEO_ATTRIBUTE(black,white)
- WPOINTER w;
- char *s1 = "This string will wrap around to the next line\n";
- char *s2 = "This escape code will ring the bell \a";
- int i = 3;
- double j = 5.6;
-
- main()
- {
- WindowInitializeSystem();
- WindowSaveInitial(0);
- w = WindowInitialize(BORDER,1,1,30,10,NORM,NORM,SINGLEBOX);
- WindowOpen(w);
- WindowDisplay(w,1,NOEFFECT);
- WindowPrintf(w,"3+2 is equal to %d\n",3+2);
- GET_KEY();
- WindowPrintf(w,"i is equal to %d\nj is equal to %lf\n",i,j);
- GET_KEY();
- WindowPrintf(w,s1);
- GET_KEY();
- WindowPrintf(w,s2);
- }